/*
 * Copyright (c) 2006-2023, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2018-11-27     zylx         first version
 */

 #ifndef __DRV_QSPI_H__
 #define __DRV_QSPI_H__
 
 #include <rtthread.h>
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 #define SPI_CS_TAKE (0)
 #define SPI_CS_RELEASE (1)
 
 typedef void (*cs_ctrl_callback_t)(uint32_t value);
 
 rt_err_t rt_hw_qspi_device_attach(const char *bus_name, const char *device_name, rt_base_t cs_pin, rt_uint8_t data_line_width, void (*enter_qspi_mode)(), void (*exit_qspi_mode)(), cs_ctrl_callback_t callback);
 
 #ifdef __cplusplus
 }
 #endif
 
 #endif /* __DRV_QSPI_H__ */
 